import { request, METHOD } from "@/utils/request";
import { MENU, ADDMENU, UPDATEMENU, DELMENU, ALLMENU, FINDMENU } from "./api";

export function list(params) {
  return request(MENU, METHOD.GET, params);
}
export function del(params) {
  return request(DELMENU, METHOD.POST, params);
}
export function update(params) {
  return request(UPDATEMENU, METHOD.POST, params);
}
export function add(params) {
  return request(ADDMENU, METHOD.POST, params);
}
export function getAll(params) {
  return request(ALLMENU, METHOD.GET, params);
}

export function findById(params) {
  return request(FINDMENU, METHOD.GET, params);
}
